<template>
	<view class="page-content">
		<view class="conter">
			<img :src="configInfo.kefu_code" style="width: 80%;">
			<view class="info">
				<text>{{ configInfo.kefu_text }}</text>
			</view>
		</view>
		
		<!-- 侧边小工具 -->
		<side-tools :scrollTop="scrollTop"></side-tools>
	</view>
</template>

<script>
	import {
		mapState,
		mapActions,
		mapMutations
	} from "vuex"
	export default {
		data() {
			return {
				scrollTop: 0,
			}
		},
		onReady(){
			if(this.$wechat.isWechat()) this.$util.navTitle()
		},
		computed: mapState({
			userInfo: state => state.user.userInfo,
			configInfo: state => state.config.configInfo,
		}),
		
		onLoad(){
			this.getConfigInfo()
		},
		
		onShow(){
			
		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop;
		},
		methods: {
			...mapActions(['getConfigInfo']),
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #fff;
		text-align: center;
	}
	img{
		margin-top: 60rpx;
		background-color: #fff;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, .1);
	}
	.info{
		font-size: $titleSize;
		color: $incolor-1;
		margin-top: 30rpx;
	}
</style>
